from operator import index

my_list = [3, "apple", 9, "banana", 7, "cherry", 2, "date", 5, "elderberry"]
my_list.append("fig")
print(my_list)
# my_list.pop(3)
my_list.remove("banana")
print(my_list)
index_7 = my_list.remove(7)
index_7 = my_list.insert(3,"grape")
print(my_list)
index_cherry = my_list.index("cherry")
print(index_cherry)
for i in my_list:
    print(my_list)
my_list.insert(5,"kiwi")
print(my_list)
three = my_list[2]
print(three)
two = my_list[-2]
print(two)
print(my_list[2:7])
my_list.reverse()
print(my_list)
my_list.sort()
print(my_list)


